export function getComponentSize(componentType) {
  switch (componentType) {
    case WebGLRenderingContext.BYTE:
    case WebGLRenderingContext.UNSIGNED_BYTE:
      return 1;
    case WebGLRenderingContext.SHORT:
    case WebGLRenderingContext.UNSIGNED_SHORT:
      return 2;
    case WebGLRenderingContext.UNSIGNED_INT:
    case WebGLRenderingContext.FLOAT:
      return 4;
    default:
      return 0;
  }
}

export const accessorSizes = {
  SCALAR: 1,
  VEC2: 2,
  VEC3: 3,
  VEC4: 4,
  MAT2: 4,
  MAT3: 9,
  MAT4: 16
};
